\ProvidesPackage{apuntes}
\typeout{SCP - Peruvian Computing Society, v 0.1 <21 Feb 2006>}

\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}

%\selectlanguage{spanish}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{fancyhdr}

\usepackage{amsfonts}
%\usepackage{ae}

\newcommand\apaz{Alfredo Paz-Valderrama}
\newcommand\unsa{Universidad Nacional de San Agustín}
\newcommand\spc{Sociedad Peruana de Computación}

\gdef\@subtitle{}
\gdef\subtitle#1{\gdef\@subtitle{#1}}
\gdef\@institution{}
\gdef\institution#1{\gdef\@institution{#1}}
\gdef\@address{}
\gdef\address#1{\gdef\@address{#1}}
\gdef\@logo{}
\gdef\logo#1{\gdef\@logo{#1}}
\gdef\@publisher{}
\gdef\publisher#1{\gdef\@publisher{#1}}
\gdef\@years{}
\gdef\years#1{\gdef\@years{#1}}
\gdef\@version{}
\gdef\version#1{\gdef\@version{#1}}

\def\maketitle{%
   \begin{titlepage}
      \setcounter{page}{0}%

      \
      
      \vspace{ 0.5 in}
      
      \noindent
      {\Huge\textbf{\@title}}\\
      \vskip 0.1 in
      {\Huge\textit \@subtitle}
      \vskip 0.1 in
      \begin{flushright}
      {\Large Versión \@version}
      \end{flushright}
      
      \vskip 2 in

      \noindent
      {\Large\textbf{\@author}}\\
      
      %{\large\textit{\@institution}}

      \vskip 1.5 in
      \begin{flushright}
      {\includegraphics[width=3cm]{\@logo}}
      \end{flushright}


      \noindent
      \rule{\textwidth}{1mm}\
      \begin{center}
      {\@address}\\
      {\@publisher}\\
      {\@years}
      \end{center}
   \end{titlepage}
%   \setcounter{footnote}{0}%
%   \gdef\@author{}\gdef\@title{}\gdef\@years{}\gdef\@abstract{}
%   \let\maketitle\relax
}%

\pagestyle{fancy}
\fancyhead[RE]{\bfseries\leftmark}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[LE,RO]{\bfseries\thepage}

\newenvironment{func}{
   \newcounter{fcount}
   \begin{list}{\textbf{F\arabic{fcount}: }}{
      \usecounter{fcount}
      \setlength\itemindent{0.2in}
   }
}{
   \end{list}
}
\newenvironment{axiom}{
   \newcounter{acount}
   \begin{list}{\textbf{A\arabic{acount}: }}{
      \setlength\itemindent{0.2in}
      \usecounter{acount}}
}{
   \end{list}
}

